home *** CD-ROM | disk | FTP | other *** search
/ Professor Multimedia / Professor Multimedia.iso / pmm.sbk (.txt) < prev    next >
Asymetrix ToolBook File  |  1993-11-22  |  13KB  |  177 lines

  1. PMM System Book
  2. System
  3. Button
  4. -- System 
  5. Professor MULTIMEDIA
  6. -- Copyright (c) 1993 Individual Software Inc.
  7. All Rights Reserved.
  8. -- default handlers 
  9. messages, etc
  10. -- Each 
  11. 8hooks up 
  12. xalready 
  13. SysBooks
  14.     -- since we're a 
  15. the enterbooks
  16. each 
  17. ~, we 
  18.  every 
  19. Iwe OR one 
  20.     -- other 
  21.     translateWindowMessage
  22.         -- 
  23.  WM_SYSCOMMAND
  24. getWMSysCommand 
  25.     linkDLL "user"
  26.  ShowWindow(
  27. (kernel"
  28.         DWORD GetFreeSpace(
  29. xhwnd, winMsg, wParam, lplow,lphi
  30.     -- effectively 
  31. f0xFFF0
  32. 61472    -- minimized
  33. 3)    -- 
  34. maximized
  35. 61728
  36. 3)    -- 
  37. funcky thing turns on 
  38. xclude 
  39. product!
  40. -- whenever a 
  41. Bgets 
  42. M off 
  43. ability 
  44. buttons 
  45. Ftry 
  46. excludetab 
  47. puppy 
  48. maximimize 
  49. toolbook main 
  50. thus everything 
  51. maximizeMainWindow
  52. e(allows resizing 
  53. restoreMainWindow
  54. -- called 
  55. starting programs
  56. warn 
  57. ] memory
  58. -- code:
  59. --         1    = about 
  60. Compel 
  61. -running demo
  62. WP Presentation Test Drive
  63. checkSystemMemory theCode
  64. ZmemFree,memReq
  65. 0)/1024) 
  66. 1000 
  67. 1500 
  68. low."
  69. -- eat mouse 
  70. keyboard clicks
  71. EatClicks
  72. ZwFlags,dwBytes,cnt,hMsg,lpMsg
  73. 66        -- GlobalAlloc flags
  74. 32    -- 
  75. MSG structure, 
  76. froom 
  77. spare
  78.     -- allocate a block 
  79. GlobalLock(
  80.     -- Call Windows PeekMessage function 
  81.  we don't want
  82.     -- Mouse 
  83. WM_MOUSEMOVEs 
  84. cursor will
  85.     -- be flaky
  86. ,513,521,1) <> 0
  87.     -- Keyboard 
  88. ,256,264,1) <> 0
  89.     -- free 
  90. GlobalUnlock(
  91. GlobalFree(
  92.  "eaten"
  93. -- disable 
  94. cequivalent keystrokes
  95. -- these 
  96. intercept various 
  97. znothing
  98. prevents 
  99. wToolBook response 
  100. happening
  101. index
  102. selectpage
  103. previous
  104. paragraph
  105. restoreMainWindow
  106. first
  107. enterButton
  108. history
  109. checkSystemMemory
  110. newpage
  111. newbackground
  112. showHotwords
  113. character
  114. enterbook
  115. saveas
  116. dohelp
  117. search
  118. index
  119. sizetopage
  120. italic
  121. maximizeMainWindow
  122. strikeout
  123. underline
  124. selectpage
  125. ysCommand
  126. getWMSysCommand
  127. EatClicks
  128. enterbook
  129. getWMSysCommand
  130. ShowWindow
  131. kernel
  132. GetFreeSpace
  133. getWMSysCommand
  134. ShowWindow
  135. ShowWindow
  136. lplow
  137. wParam
  138. winMsg
  139. enterButton
  140. maximizeMainWindow
  141. ShowWindow
  142. restoreMainWindow
  143. ShowWindow
  144. checkSystemMemory
  145. GetFreeSpace
  146. Memory is low.
  147. memFree
  148. memReq
  149. theCode
  150. EatClicks
  151. GlobalAlloc
  152. GlobalLock
  153. PeekMessage
  154. PeekMessage
  155. GlobalUnlock
  156. GlobalFree
  157. wFlags
  158. dwBytes
  159. lpMsg
  160. character
  161. search
  162. sizetopage
  163. previous
  164. paragraph
  165. first
  166. history
  167. newpage
  168. newbackground
  169. showHotwords
  170. saveas
  171. dohelp
  172. index
  173. italic
  174. strikeout
  175. underline
  176. selectpage
  177.